package democl;
 class OutClass1{
     public int data1 = 1;
     private int data2 = 2;
     static int data3 = 3;
     public void outclass1(){
         System.out.println("outclass1....");
     }
     public void tect1(){
         System.out.println("Outclasstect1....");
     }
     static class InClass1{
         public int data1 = 1;
         private int data4 = 2;
         static int data5 = 3;
         public void inclass1(){
             System.out.println("inclass1");
             System.out.println(data1);
             System.out.println(OutClass1.data3);
             System.out.println(data4);
             System.out.println(data5);
         }
         public void tect1(){
             System.out.println("inclasstect1....");
         }
     }
 }
class OutClass2{
    public int data1 = 1;
    private int data2 = 2;
    static int data3 = 3;
    public void tece2(){
        System.out.println("outclasstect...");
    }
    public void outclass2(){
        System.out.println("o;utclass2");
    }
        class InClass2{
        public int data1 = 1;
        private int data4 = 2;
        static int data5 = 3;
        public void inclass2(){
            System.out.println("inclass2");
        }
            public void tect2(){
                System.out.println("inclasstect....");
                System.out.println(data1);
                System.out.println(OutClass2.this.data1);
                System.out.println(OutClass2.data3);
                System.out.println(this.data4);
                System.out.println(InClass2.data5);
            }
    }
}
public class Tect {
    public static void main(String[] args) {
        OutClass2.InClass2 inClass2 = new OutClass2().new InClass2();
        OutClass2 outClass2 = new OutClass2();
        OutClass2.InClass2 inClass21 = outClass2.new InClass2();
       // inClass2.inclass2();
        //inClass2.tect2();
        outClass2.tece2();
    }
    public static void main1(String[] args) {
        OutClass1.InClass1 inClass1 = new OutClass1.InClass1();
        inClass1.inclass1();
        inClass1.tect1();
    }
}
